package cn.theten52.demo.patterns.design.creation.factory.abstract1;

/**
 * 便宜的车
 *
 * @author wangjin
 * @date 2020/12/27
 */
public class CheapCarFactory implements AbstractFactory {
    /**
     * @return 车身
     */
    @Override
    public CarBody newCarBody() {
        return new SmallCarBody();
    }

    /**
     * @return 车辆颜色
     */
    @Override
    public CarColor newCarColor() {
        return new BlackCarColor();
    }
}
